<!-- head -->
{include file='public/head' /}
<!-- head -->
<!-- left -->
{include file='public/left' /}
<!-- left -->

<div class="content-wrapper">
    <section class="content-header">
        <h1>
            编辑管理员
            <small>管理员信息</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-dashboard"></i> 权限管理 </a></li>
            <li>管理员</li>
            <li class="active">修改</li>
        </ol>
    </section>

    <section class="content">
        <div class="row">
            <div class="col-md-12">
                <!-- Horizontal Form -->
                <div class="box box-info">
                    <div class="box-header with-border">
                        <h3 class="box-title">修改信息</h3>
                    </div>
                    <!-- /.box-header -->
                    <!-- form start -->
                    <form class="form-horizontal" method="post" action="{:url('admin/Admin/AdminEdit','','')}" enctype="multipart/form-data">
                        <input type="hidden" class="form-control" name="id" value="{$admin.id}">
                        <div class="box-body">
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">账号</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="admin_name" name="admin_name" value="{$admin.admin_name}" placeholder="请输入账号..." readonly>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">名称</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="admin_note" name="admin_note" value="{$admin.admin_note}" placeholder="请输入名称...">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail3" class="col-sm-2 control-label">密码</label>
                                <div class="col-sm-10">
                                    <input type="password" class="form-control" id="admin_pwd" name="admin_pwd"  placeholder="为了安全每次修改必须重新输入密码...">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputPassword3" class="col-sm-2 control-label">角色</label>
                                <div class="col-sm-10">
                                    <select class="form-control select2" name="type">
                                        {if condition="$admin['type'] eq 1"}
                                        <option selected="selected" value="1">后台管理员 </option>
                                        <option value="3">技术部门</option>
                                        {elseif condition="$admin['type'] eq 3"}
                                        <option value="1">后台管理员 </option>
                                        <option selected="selected" value="3">技术部门</option>

                                        {/if}
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputPassword3" class="col-sm-2 control-label">头像</label>
                                <div class="col-sm-10">
                                    <input type="file" id="photo" name='photo'>
                                    <img src="{:config('adminconfig.ImgPath')}/{$admin.photo}" width="20%">
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputPassword3" class="col-sm-2 control-label">请输入你的密码</label>
                                <div class="col-sm-10">
                                    <input type="password" class="form-control" id="adminname" name="adminname" placeholder="安全验证：请输入你的密码">
                                </div>
                            </div>
                        </div>
                        <!-- /.box-body -->
                        <div class="box-footer">
                            <button type="submit" class="btn btn-info pull-right" name="submit" value="3">保存修改</button>
                        </div>
                        <!-- /.box-footer -->
                    </form>
                </div>
            </div>
        </div>
    </section>
</div>
<!-- foot -->
{include file='public/foot' /}
<!-- foot -->